<%--
  Created by IntelliJ IDEA.
  User: 陈俊雄
  Date: 2018/7/12
  Time: 16:36
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<!-- Main view -->
<div class="animated fadeInRight">
    <div class="wrapper wrapper-content ng-scope">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>{{'WITHDRAW_DEPOSIT_INQUIRY' | translate}}：</h5>
                    </div>
                    <div class="ibox-content sk-loading" ng-controller="withdrawDepositInquiryCtrl">
                        <div class="sk-spinner sk-spinner-wave">
                            <div class="sk-rect1"></div>
                            <div class="sk-rect2"></div>
                            <div class="sk-rect3"></div>
                            <div class="sk-rect4"></div>
                            <div class="sk-rect5"></div>
                        </div>
                        <form name="myForm">
                            <div class="row">
                                <div class="col-lg-offset-1 col-lg-10">
                                    <div class="col-sm-6 col-md-6 col-lg-3">
                                        <div class="form-group form-group-sm">
                                            <div class="input-group">
                                                <span class="input-group-addon">申请人：</span>
                                                <input type="text" class="form-control" ng-model="searchInfo.applicant">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-md-6 col-lg-3">
                                        <div class="form-group form-group-sm">
                                            <div class="input-group">
                                                <span class="input-group-addon">提现状态：</span>
                                                <select class="form-control" ng-model="searchInfo.status"
                                                        ng-options="x.firstValue as x.name for x in financeDrawingStatus">
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-md-6 col-lg-3">
                                        <div class="form-group form-group-sm">
                                            <div class="input-group">
                                                <span class="input-group-addon">提现时间：</span>
                                                <input type="text" name="startDate"
                                                       class="form-control" ng-readonly="true" ng-click="openDatepicker1()"
                                                       uib-datepicker-popup="{{format}}" ng-model="searchInfo.startDate"
                                                       is-open="popup1.opend"
                                                       datepicker-options="dateOptions1"
                                                       alt-input-formats="altInputFormats"
                                                       close-text="关闭" clear-text="清空" current-text="今天">
                                                <span class="input-group-btn">
                                            <button type="button" class="btn btn-default btn-sm no-margins"
                                                    ng-click="openDatepicker1()">
                                                <i class="fa fa-calendar"></i>
                                            </button>
                                        </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-md-6 col-lg-3">
                                        <div class="form-group form-group-sm">
                                            <div class="input-group">
                                                <span class="input-group-addon">结束日期：</span>
                                                <input type="text" name="endDate"
                                                       class="form-control" ng-readonly="true" ng-click="openDatepicker2()"
                                                       uib-datepicker-popup="{{format}}" ng-model="searchInfo.endDate"
                                                       is-open="popup2.opend"
                                                       datepicker-options="dateOptions2"
                                                       alt-input-formats="altInputFormats"
                                                       ng-disabled="endDateDisable"
                                                       close-text="关闭" clear-text="清空" current-text="今天">
                                                <span class="input-group-btn">
                                            <button type="button" class="btn btn-default btn-sm no-margins"
                                                    ng-click="openDatepicker2()"
                                                    ng-disabled="endDateDisable">
                                                <i class="fa fa-calendar"></i>
                                            </button>
                                        </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6 col-md-6 col-lg-3 col-lg-offset-3">
                                    <button type="submit" class="btn btn-sm btn-w-m btn-primary pull-right"
                                            ng-click="search()">
                                        查询
                                    </button>
                                </div>
                                <div class="col-sm-6 col-md-6 col-lg-3">
                                    <button type="button" class="btn btn-sm btn-w-m btn-info"
                                            ng-click="resetForm()">
                                        重置
                                    </button>
                                </div>
                            </div>
                        </form>
                        <div class="table-responsive">
                            <table ng-table="financeDrawingTable"
                                   class="table table-condensed table-striped table-hover table-bordered">
                                <tr ng-repeat="row in $data">
                                    <td class="text-center" data-title="'ID'">
                                        {{row.id}}
                                    </td>
                                    <td class="text-center" data-title="'提现金额'">
                                        {{row.amount | currency:'CNY'}}
                                    </td>
                                    <td class="text-center" data-title="'划款金额'">
                                        {{row.transferAmount | number:2}}
                                    </td>
                                    <td class="text-center" data-title="'实际划款金额'">
                                        {{row.realAmount | number:2}}
                                    </td>
                                    <td class="text-center" data-title="'申请时间'">
                                        {{row.applicationTime | date:'yyyy-MM-dd hh:mm:ss:sss'}}
                                    </td>
                                    <td class="text-center" data-title="'申请人'">
                                        {{row.applicant}}
                                    </td>
                                    <td class="text-center" data-title="'审核时间'">
                                        {{row.auditTime | date:'yyyy-MM-dd hh:mm:ss:sss'}}
                                    </td>
                                    <td class="text-center" data-title="'划款时间'">
                                        {{row.transferTime | date:'yyyy-MM-dd hh:mm:ss:sss'}}
                                    </td>
                                    <td class="text-center" data-title="'状态'">
                                        {{row.status | getValueByList:financeDrawingStatus:'firstValue':'name'}}
                                    </td>
                                    <td class="text-center" data-title="'备注'">
                                        {{row.transferRemark}}
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <my-pagination table-param="financeDrawingTable"></my-pagination>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>